package com.flex.mobile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.stereotype.Service;

import com.flex.mobile.dao.impl.CustInfoDao;
import com.flex.mobile.model.User;
import com.flex.mobile.service.UserService;

@Service("userService")
@RemotingDestination(channels = { "my-amf" })
public class UserServiceImpl implements UserService {
   
   private CustInfoDao custInfoDao;


   @Autowired
   public void setCustInfoDao(CustInfoDao custInfoDao) {
      this.custInfoDao = custInfoDao;
   }


   @Override
   public void upateUserIphoneToken(User user) {
      custInfoDao.updateIphoneTokenByTid(user.getIphoneToken(), user.getId());
   }

}
